<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>测试</title>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
$(function(){
	/*$.post("user/reg", {usid: "1001", uname: "唐冉", tel:"21325654"}, result =>{
		console.info(result)
	},"json");*/
	
	//location.href="user/find?usid=1002&uame=yc&tel=1111";
	
	/*$.post("user/find2", {usid: "1001", uname: "唐冉", tel:"21325654"}, result =>{
		console.info(result)
	},"json");*/
})
function reg1(){
	$.post("user/reg1", null, result =>{
		console.info(result)
	},"json");
}

function find2(){
	$.post("user/find2", {uid: "1001", uname: "唐冉", tel:"21325654"}, result =>{
		console.info(result)
	},"json");
}

function find(){
	$.post("user/find", {usd: "1001", uname: "唐冉", tel:"21325654"}, result =>{
		console.info(result)
	},"json");
}

function reg(){
	$.post("user/reg", {usid: "1001", uname: "唐冉", tel:"21325654"}, result =>{
		console.info(result)
	},"json");
}
</script>
</head>
<body>
<h1>进来了...</h1>
<h1><input type="button" onclick="reg1()" value="提交" /></h1>
<h1><input type="button" onclick="find2()" value="find2" /></h1>
<h1><input type="button" onclick="reg()" value="reg" /></h1>
<h1><input type="button" onclick="find()" value="find" /></h1>
<a href="user/find?uid=1002&uname=yy&tel=545454">连接</a>
</body>
</html>